var express = require('express')
var bodyParser=require('body-parser')
var user=require('./routes/api/user')
var profile=require('./routes/api/profile')

var passport =require('passport')
var app = express()
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(passport.initialize());
require('./config/passport')(passport)
app.use('/api/user',user)
app.use('/api/profile',profile)
var port = process.env.PORT || 5000
app.listen(port)